function handler(evt)
	if(evt.key ~= nil and evt.key == "GREEN")then
		canvas:attrColor(0,0,0,255);
		canvas:attrFont("Arial",30);
		canvas:drawRect('fill',0,0,canvas:attrSize());
		canvas:attrColor(255,0,0,255);
		canvas:drawText(100,100,tostring("PEGOU"));
		canvas:flush();
		canvas:attrColor(0,0,0,255);
	end
end

event.register(handler);